package com.xueba.framework.common.exception;

import com.xueba.framework.common.model.response.ResultCode;

/**
 * 自定义异常类
 * @author Kidy
 * @date 2020/7/31 10:01
 */
public class CustomException extends RuntimeException {

    private ResultCode resultCode;

    public CustomException(ResultCode resultCode) {
        this.resultCode = resultCode;
    }

    public ResultCode getResultCode() {
        return resultCode;
    }
}
